﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace BlogTruyen.UserControls
{
    public partial class Genre : UserControl
    {
        ViewModels.Genre Data;
        public Genre()
        {
            InitializeComponent();

            Data = new ViewModels.Genre();
            DataContext = Data;
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            if (!Data.isLoaded)
            {
                //var webClient = API.GetWebClient();
                //webClient.DownloadStringCompleted += webClient_DownloadStringCompleted;
                //webClient.DownloadStringAsync(new Uri(String.Format("http://blogtruyen.com{0}", UriKind.Absolute));
                //busyIndicator.IsRunning = true;
            }
        }

        private void llsStories_ItemRealized(object sender, ItemRealizationEventArgs e)
        {

        }
    }
}
